import { CHNAGE_LIST } from './constants'

const defaultState = {
	name: 'finnwu2',
	articleList: []
}

export default (state = defaultState, action) => {
	switch(action.type) {
		case CHNAGE_LIST:
			return {
				...state,
				articleList: action.value
			}
		default: 
			return state
	}
}